<?php
//php8+

//str_ends_with — 检查字符串是否以指定子串结尾
//str_ends_with(string $haystack, string $needle): bool


$str='eeapple';
$bool=str_ends_with($str,'apple');
var_dump($bool);
